package autowired;

import org.springframework.beans.factory.annotation.Autowired;

public class GreetingBean {

	@Autowired
	private Greeting greeting;

	public Greeting getGreeting() {
		return greeting;
	}

	public void setGreeting(Greeting greeting) {
		this.greeting = greeting;
	}
	public void print(){
		System.out.println(greeting);
	}

	@Override
	public String toString() {
		return "GreetingBean [greeting=" + greeting + "]";
	}
}
